package com.healthtop.common;


import javax.servlet.http.HttpServletRequest;

/**
 * Created by Administrator on 2017/11/21.
 */
public class CommonsMultipartResolver extends org.springframework.web.multipart.commons.CommonsMultipartResolver {


    @Override
    public boolean isMultipart(HttpServletRequest request) {
        String path = request.getRequestURI();
        if(path.contains("/news/upload")){
            return false;
        } else {
            return super.isMultipart(request);
        }
    }

}